package top.codedance.iotp.iot.sdk.po.async;

public class CommonParam extends AsyncBaseParam {
    private Integer instance = -1;

    public CommonParam(){}

    public CommonParam(Integer instance) {
        this.instance = instance;
    }

    public CommonParam(String username, String password, String deviceId, Integer instance) {
        super(username, password, deviceId);
        this.instance = instance;
    }

    public CommonParam(AsyncBaseParam asyncBaseParam){
        super(asyncBaseParam.getUsername(), asyncBaseParam.getPassword(), asyncBaseParam.getDeviceId());
    }

    public Integer getInstance() {
        return instance;
    }

    public void setInstance(Integer instance) {
        this.instance = instance;
    }
}
